package com.lagou.lagouorderservice.service;

import com.lagou.lagouorderservice.dao.OrderMapper;
import com.lagou.lagouorderservice.pojo.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Authther: mrwu
 * @date:2021/5/1-05
 * @Description:com.lagou.lagouorderservice.service
 */
@Service
public class OrderServiceImpl implements OrderService{

    @Autowired
    private OrderMapper orderMapper;

    @Override
    public void insertOrder(Order order) {
        orderMapper.insert(order);
    }

    @Override
    public List<Order> listOrder() {
        return orderMapper.selectAll();
    }
}
